import request from "@/api/request";

export default {
    // 获得所有考试班级
    getAllTrainClass:(params)=>{
        return request({
            url:"train-class/all",
            method:"post",
            data:params
        })
    },
    /**
     * 获取考试人员
     */
    getExamPerson:()=>{
        return request({
            url:"exam/get",
            method:"get"
        })
    },
    /**
     * 创建考试
     */
    createExam:(params)=>{
        return request({
            url:"/exam/create",
            method:"post",
            data:params
        })
    },
    /**
     * 获取所有考试分页接口
     */
    getExam:(params)=>{
        return request({
            url:"/exam/page",
            method:"post",
            data:params
        })
    },
    /**
     * 更新考试
     */
    updateExam:(params)=>{
        return request({
            url:"/exam/page",
            method:"post",
            data:params
        })
    },
}
